const TabletypeObj = require('../modules/Tabletype');

let TabletypeController = {
    get_tabletypeInfo: async function(req, res){
        let resultDate = await TabletypeObj.getTabletypeInfo();
        res.send(resultDate);
    },

    post_tabletypeAdd: async function(req, res){
        let data = req.body;
        let resultDate = await TabletypeObj.addTabletype(data);
        res.send(resultDate);
    },

    post_tabletypeEdit: async function(req, res){
        let data = req.body;
        let resultDate = await TabletypeObj.editTabletype(data);
        res.send(resultDate);
    },

    post_tabletypeDel: async function(req, res){
        let data = req.body;
        let resultDate = await TabletypeObj.delTabletype(data);
        res.send(resultDate);
    }
}
module.exports = TabletypeController;